package com.guet.comment.mapper;

import com.guet.comment.beans.vo.CommentDateVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Li
 * @create 2022-12-19-22:08
 */
@Mapper
public interface CommentMapper {
    List<CommentDateVO> page(@Param("issueId") Integer issueId);

    void add(@Param("issueId") Integer issueId, @Param("userId") Integer userId, @Param("content") String content);

    void delete(@Param("issueId") Integer issueId, @Param("userId") Integer userId, @Param("id") Integer id);
}
